//
//  OtherManagementViewCell.m
//  tuanGG
//
//  Created by 李洪旭 on 15/9/21.
//  Copyright (c) 2015年 weita. All rights reserved.
//

#import "OtherManagementViewCell.h"
#import "Header.h"
@implementation OtherManagementViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _HeadImage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 80, 80)];
        _HeadImage.layer.cornerRadius = 40;
        _HeadImage.layer.masksToBounds = YES;
        [self addSubview:_HeadImage];
        
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(_HeadImage.frame.size.width+20, 20,ScreenWidth-_HeadImage.frame.size.width-20 , 20)];
        _nameLabel.textColor = [UIColor colorWithHexString:@"383838"];
        [self addSubview:_nameLabel];
        
        _priceLabel = [[UILabel alloc]initWithFrame:CGRectMake(_HeadImage.frame.size.width+20, _nameLabel.frame.size.height+25, ScreenWidth-_HeadImage.frame.size.width-20, 20)];
        _priceLabel.font = [UIFont systemFontOfSize:15];
        _priceLabel.textColor = [UIColor colorWithHexString:@"989898"];
        [self addSubview:_priceLabel];
        
        _validationLabel = [[UILabel alloc]initWithFrame:CGRectMake(_HeadImage.frame.size.width+20, _nameLabel.frame.size.height+_priceLabel.frame.size.height+30, ScreenWidth-_HeadImage.frame.size.width-20, 20)];
        _validationLabel.font = [UIFont systemFontOfSize:15];
        _validationLabel.textColor = [UIColor colorWithHexString:@"989898"];
        [self addSubview:_validationLabel];
    }
    return  self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
